package com.canal.admin.dao;

import com.canal.admin.entity.data.ZcolBusRecord;
import com.canal.admin.transfer.req.data.CanalHiConditions;
import com.canal.admin.transfer.resp.CanalHiResp;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author yangbo
 * @date 2020-07-21 21:00
 * @description
 * @since
 */
@Repository
public interface ZcolBusRecordMapper {

    /**
     * 插入所有的记录
     * @param busRecords
     */
    void saveAllBusRecord(@Param("busRecords") List<ZcolBusRecord> busRecords);

    /**
     * 渠道历史数据
     * @param conditions
     * @return
     */
    List<CanalHiResp> canalHiList(@Param("conditions")CanalHiConditions conditions);
}
